import java.util.ArrayList;
import java.util.Date;

public class Main {
    private static ArrayList<SalesPerson> careers = new ArrayList<>();
    private static ArrayList<Car> cars = new ArrayList<>();
    private static ArrayList<SalesRecord> records = new ArrayList<>();
    private static ArrayList<Customer> customers = new ArrayList<>();
    private static ShopSituation situation;

    public static void main(String[] args) {
        testperson();
        testcar();
        testrecord();
    }

    private static void testperson() {
//        ShopOwner temp = new ShopOwner("Mocus", "兴旺", "Xian");
//        SalesDirector temp1 = new SalesDirector("张三");
        SalesPerson temp2 = new SalesPerson("李四");

//        careers.add(temp);
//        careers.add(temp1);
        careers.add(temp2);

        System.out.println("Hello world!");
        System.out.println(careers);
    }

    public static void testcar()
    {
        Car temp = new Car("帕萨特",10000, Car.Rank.MEDIUM,"两厢车");
        cars.add(temp);
        System.out.println(temp);
    }

    private static void testrecord()
    {
        customers.add(new Customer("王五",true));


        System.out.println(cars.get(0));
        cars.get(0);
        SalesRecord temp = new SalesRecord(customers.get(0),cars.get(0),(SalesPerson)careers.get(0),new Date(),2);
        records.add(temp);
    }
}